﻿namespace Traffic.Entity;

/// <summary>
/// 用户钱包消费，充值记录。
/// </summary>
public partial class UserWalletRecord
{
    public int Id { get; set; }

    /// <summary>
    /// 使用、充值、入帐时操作帐号，对应UserData.ID
    /// </summary>
    public int UserId { get; set; }

    /// <summary>
    /// 钱包ID，对应User_MoneyPackage.ID
    /// </summary>
    public int? PackageId { get; set; }

    public string? ChargeOrderNum { get; set; }

    /// <summary>
    /// 支付表ID，对应PayRequests.ID
    /// </summary>
    public int? PayId { get; set; }

    public decimal Cash { get; set; }

    public decimal Bonus { get; set; }

    public decimal Present { get; set; }

    public string Remarks { get; set; } = null!;

    public DateTime CreateDate { get; set; }

    /// <summary>
    /// 类型  0：充值  1：消费   2：活动赠送
    /// </summary>
    public int Type { get; set; }

    /// <summary>
    /// 状态   0：作废   1：正常   2：成功   3：回退
    /// </summary>
    public int Status { get; set; }
}
